Description: Query data and return result as a cursor or a table sequence. Syntax: ali_query(ali_open, tableName, keyNamquery data,cursor